package com.domor.common.exception;

import com.domor.common.utils.StringUtils;

/**
 * 文件信息异常类
 *
 * @author domor
 */
public class FileException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    public static final String UPLOAD_MAXSIZE = "上传的文件大小超出限制的文件大小！<br/>允许的文件最大大小是：{}MB！";

    public static final String UPLOAD_FILENAME_LENGTH = "上传的文件名最长{}个字符";

    private String message;

    public FileException(String message, Object args) {
        super(StringUtils.format(message, args));
    }

    @Override
    public String getMessage() {
        return this.getMessage();
    }

}
